module.exports = app => {
    const { router, controller } = app;
    router.post("/miva_see_hit", controller.home.getHitData);
    router.get("/miva_jssdk", controller.jssdk.accessTokenInterface);

    router.get("/paihang", controller.football.paihang);
    router.post("/paihang", controller.football.pushScore);
    router.post("/bestScore", controller.football.bestScore);
    router.post("/useDuijiang", controller.football.useDuijiang);

    router.resources('/youanmi/admin', 'xuanchuan.admin')
    router.resources('/youanmi/home', 'xuanchuan.home')
    router.post('/youanmi/upImage', 'xuanchuan.utlis.upImage')
    router.options('/youanmi/admin', 'xuanchuan.admin.index')
    router.post('/youanmi/admin/reList', 'xuanchuan.admin.reList')


    router.post('/youanmi/gaolin', 'gaolin.gaolin')
    router.post('/youanmi/check', 'gaolin.check')
    router.post('/youanmi/list', 'gaolin.list')

    router.resources('/youanmi/vrProList', 'vrShow.index')
    // 物业项目
    router.resources('/youanmi/wuye/advice', 'wuye.advice')
    router.resources('/youanmi/wuye/binner', 'wuye.binner')
    router.resources('/youanmi/wuye/contact', 'wuye.contact')
    router.resources('/youanmi/wuye/info', 'wuye.index')
    router.resources('/youanmi/wuye/jobs', 'wuye.jobs')
    router.resources('/youanmi/wuye/news', 'wuye.news')
    router.resources('/youanmi/wuye/user', 'wuye.user')
    router.post('/youanmi/wuye/user/login', 'wuye.user.login')
    router.post('/youanmi/wuye/user/info', 'wuye.user.getInfo')
    router.post('/youanmi/wuye/user/logout', 'wuye.user.getInfo')
    router.post('/youanmi/wuye/upload', 'wuye.upload.upload')
};